package com.qiang.demo01;

import java.util.HashSet;
import java.util.Iterator;

public class Test03 {
    public static void main(String[] args) {
        HashSet<String> hs = new HashSet<>();
        hs.add("333");
        hs.add("444");
        hs.add("222");
        hs.add("777");
        hs.add("999");
        hs.add("你好");
        hs.add("再说");
        hs.add("哈哈");
        Iterator<String> it = hs.iterator();
        while(it.hasNext()){
            String next = it.next();
            System.out.println(next);
        }
        int i = hs.hashCode();
        System.out.println(i);
    }
}
